﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class DeliverGoodsManagement_OrderDetail : System.Web.UI.Page
{
    private string Code
    {
        get
        {
            return Request.QueryString["Code"] != null ? Request.QueryString["Code"].ToString() : "";
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindOrderMain();
            BindOrderDetail();
        }
    }

    private void BindOrderMain()
    {
        dlistOrderMain.DataSource = new BLL.ORDERDOC().GetOrder(this.Code);
        dlistOrderMain.DataBind();
    }

    private void BindOrderDetail()
    {
        grvOrderDetail.DataSource = new BLL.ORDERDETAIL().GetOrderDetail(this.Code);
        grvOrderDetail.DataBind();
    }
    protected void btnDeliver_Click(object sender, EventArgs e)
    {

    }
}
